package com.hundun.vision.biz.dto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ：RuoChen
 * @date ：11:02 2024/2/26
 * @description：
 */
@Data
public class KlineBarDTO {
    /**
     * 开盘时间戳 (单位：毫秒)
     */
    private Long startTimestamp;
    /**
     * 开盘价
     */
    private BigDecimal openPrice;
    /**
     * 最高价
     */
    private BigDecimal highPrice;
    /**
     * 最低价
     */
    private BigDecimal lowPrice;
    /**
     * 收盘价
     */
    private BigDecimal closePrice;
    /**
     * 成交量
     */
    private BigDecimal volume;
    /**
     * 收盘时间戳 (单位：毫秒)
     */
    private Long endTimestamp;
    /**
     * 成交额
     */
    private BigDecimal amount;

    @Override
    public String toString() {
        return startTimestamp/1000L + "," + openPrice + "," + closePrice + "," + highPrice + "," + lowPrice + "," + volume;
    }
}
